package com.ruoyi.system.domain.quality;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质检单对象 quality_receipts
 *
 * @author ruoyi
 * @date 2023-03-09
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("quality_receipts")
public class QualityReceipts implements Serializable {

private static final long serialVersionUID=1L;


        /** id */
        @TableId(value = "id")
        @ApiModelProperty(value = "id")
        private Long id;

        /** 检验单名称 */
        @Excel(name = "检验单名称")
        @ApiModelProperty(value = "检验单名称")
        private String name;

        /** 检验单编码 */
        @Excel(name = "检验单编码")
        @ApiModelProperty(value = "检验单编码")
        private String code;

        /** 状态 0未检验 1检验中 2已检验 */
        @Excel(name = "状态 0未检验 1检验中 2已检验")
        @ApiModelProperty(value = "状态 0未检验 1检验中 2已检验")
        private Long status;

        /** 检验单结果 */
        @Excel(name = "检验单结果")
        @ApiModelProperty(value = "检验单结果")
        private String result;

        /** 创建时间 */
        @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建时间")
        private Date createTime;

        /** 检验完成时间 */
        @Excel(name = "检验完成时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "检验完成时间")
        private Date finishTime;

        @ApiModelProperty(value = "工位id")
        private Long station;

        /** 工位 */
        @Excel(name = "工位名称")
        @ApiModelProperty(value = "工位名称")
        @TableField(exist = false)
        private String stationName;

        /** 工单 */
        @Excel(name = "工单")
        @ApiModelProperty(value = "工单")
        private String workOrderNumber;

        /** createUser */
        @Excel(name = "创建人")
        @ApiModelProperty(value = "createUser")
        private Long createUser;

        /** createUser */
        @Excel(name = "创建人名称")
        @ApiModelProperty(value = "创建人名称")
        @TableField(exist = false)
        private String createUserName;


        /** 物料id */
        @ApiModelProperty(value = "物料id")
        private Long materialId;


        @Excel(name = "物料名称")
        @ApiModelProperty(value = "物料名称")
        @TableField(exist = false)
        private String materialName;


        /** 质检标准id */
        @ApiModelProperty(value = "质检标准id")
        private Long criterion;

        @Excel(name = "质检标准名称")
        @ApiModelProperty(value = "质检标准名称")
        @TableField(exist = false)
        private String criterionName;


    /** 检验单类型 */
        @Excel(name = "检验单类型")
        @ApiModelProperty(value = "检验单类型")
        private Long type;

        @Excel(name = "检验单类型名称")
        @ApiModelProperty(value = "检验单类型名称")
        @TableField(exist = false)
        private String typeName;

        /** 备注 */
        @Excel(name = "备注")
        @ApiModelProperty(value = "备注")
        private String remark;
}
